import 'package:baseProjectFlutter/widgets_common/refresh/footer/refresher_footer.dart';
import 'package:easy_refresh/easy_refresh.dart';
import 'package:flutter/cupertino.dart';

import 'header/refresher_header.dart';

class AppRefresh extends EasyRefresh {
  /// 默认构造器
  /// 将child转换为CustomScrollView可用的slivers
  AppRefresh(
      {super.key,
      required super.child,
      super.controller,
      Header? header,
      Footer? footer,
      super.onRefresh,
      super.onLoad,
      super.spring,
      super.frictionFactor,
      super.notRefreshHeader,
      super.notLoadFooter,
      super.simultaneously = false,
      super.canRefreshAfterNoMore = false,
      super.canLoadAfterNoMore = false,
      super.resetAfterRefresh = true,
      super.refreshOnStart = false,
      super.refreshOnStartHeader,
      super.callRefreshOverOffset = 20,
      super.callLoadOverOffset = 20,
      super.fit = StackFit.loose,
      super.clipBehavior = Clip.hardEdge,
      super.scrollBehaviorBuilder,
      super.scrollController,
      super.triggerAxis})
      : super(
            header: header ?? AppRefresherHeader(),
            footer: footer ?? AppRefresherFooter());
}
